package org.jsea.meta.api.bean;


import lombok.Getter;
import lombok.Setter;
import org.jsea.meta.api.constant.WhereCond;

@Getter
@Setter
public class MetaApiCond {

    private String key;
    private WhereCond cond;
    private Object value;
    private MetaApiConditionGroup group;

    public MetaApiCond(String key, WhereCond cond, Object value) {
        this.key = key;
        this.cond = cond;
        this.value = value;
    }

    public MetaApiCond(MetaApiConditionGroup group) {
        this.group = group;
    }

    public boolean isGroup() {
        return group != null;
    }
}
